<template>
  <starModal :ref="ref" :config="config" @click="click">
    <detailView :data="dataSet.formData"></detailView>
  </starModal>
</template>
<script>
const ref = "detailModal";
export default {
  name: ref,
  inject: ["anc"],
  data() {
    return {
      ref,
      config:{
        title: "查看",
        show:false,
        width: 0,
        height: 400,
        draggable: true,
        mask: true,
        closable: true,
        widthRatio: 0.5,
        buttons:[
          {type: "primary"},{show:false}
        ]
      }
    };
  },
  props: {
    dataSet: {
      default: () => {
        return {};
      },
    },
    
  },
  watch: {},
  computed: {},
  created() {},
  mounted() {
    this.$nextTick(() => {
      this.$set(this.anc.vms, this.ref, this);
    });
  },
  methods: {
    click() {
      this.anc.dataSet.configFormData = {};
      this.anc.dataSet.formData = {};
      this.config.show = false;
    },
  },
};
</script>
<style scoped lang="scss">
</style>
